<template>
  <ant-modal
    modalWidth="800"
    modalHeight="550"
    :visible="open"
    :modal-title="formTitle"
    :adjust-size="true"
    @cancel="cancel"
  >
    <a-form-model
      ref="form"
      :model="form"
      :rules="rules"
      slot="content"
      layout="vertical"
    >
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="创建者" prop="userId">
            <a-input v-model="form.userId" placeholder="请输入创建者" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="创建部门" prop="deptId">
            <a-input v-model="form.deptId" placeholder="请输入创建部门" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="创建名称" prop="userName">
            <a-input v-model="form.userName" placeholder="请输入创建名称" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="部门名称" prop="deptName">
            <a-input v-model="form.deptName" placeholder="请输入部门名称" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="公司ID" prop="companyId">
            <a-input v-model="form.companyId" placeholder="请输入公司ID" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="总投资" prop="zongtz">
            <a-input v-model="form.zongtz" placeholder="请输入总投资" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="累计投资" prop="leijitz">
            <a-input v-model="form.leijitz" placeholder="请输入累计投资" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="项目名称" prop="name">
            <a-input v-model="form.name" placeholder="请输入项目名称" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="建设单位" prop="builder">
            <a-input v-model="form.builder" placeholder="请输入建设单位" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="是否逾期" prop="isyq">
            <a-input v-model="form.isyq" placeholder="请输入是否逾期" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="领导" prop="lindao">
            <a-input v-model="form.lindao" placeholder="请输入领导" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="地址" prop="address">
            <a-input v-model="form.address" placeholder="请输入地址" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="年度投资" prop="yeartz">
            <a-input v-model="form.yeartz" placeholder="请输入年度投资" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="累计投资" prop="leijitz1">
            <a-input v-model="form.leijitz1" placeholder="请输入累计投资" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="年度目标" prop="yearflag">
            <a-textarea
              v-model="form.yearflag"
              placeholder="请输入年度目标"
              :rows="4"
            />
          </a-form-model-item>
        </a-col>
      </a-row>
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="月目标" prop="monthflag">
            <a-textarea
              v-model="form.monthflag"
              placeholder="请输入月目标"
              :rows="4"
            />
          </a-form-model-item>
        </a-col>
      </a-row>
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="排序" prop="sort">
            <a-input-number v-model="form.sort" :min="0" style="width: 100%" />
          </a-form-model-item>
        </a-col>
      </a-row>
    </a-form-model>
    <template slot="footer">
      <a-button @click="cancel"> 取消 </a-button>
      <a-button type="primary" @click="submitForm"> 保存 </a-button>
    </template>
  </ant-modal>
</template>
<script>
import BizZhongdianProjectAddForm from "./BizZhongdianProjectForm";
export default {
  ...BizZhongdianProjectAddForm,
};
</script>
